package com.example.grape_effect.zzztest

import android.opengl.GLSurfaceView
import com.example.grape_effect.base.BasicRenderer
import com.example.grape_effect.gl.common.GLProgram
import javax.microedition.khronos.opengles.GL10

class LYRender(glSurfaceView1: GLSurfaceView) : BasicRenderer(glSurfaceView1) {
    var adapter: LYAdapter? = null
    override fun onDrawFrame(gl: GL10?) {
        adapter?.let {
            GLProgram.clearColor()
            it.getCurGLProgram()?.let {
                it.draw()
            }
        }
    }
}